<!doctype html>
<html>
<head>
    {% load static %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>张勋作业</title>
    <meta name="keywords" content="responsive, blog post, comments, bootstrap, free template, templatemo"/>
    <meta name="description"
          content="Responsive Theme, full blog post, web template by Bootstrap front-end framework."/>
    <link href={% static "css/bootstrap.min.css" %} rel="stylesheet" type="text/css">
    <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
    <link href={% static "css/bootstrap-responsive.min.css" %} rel="stylesheet" type="text/css">
    <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet"
          type="text/css">
    <link href="templatemo_style.css" rel="stylesheet" type="text/css">
    <!-- HTML 5 shim for IE backwards compatibility -->
    <!-- [if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
  </script>
  <![endif]-->
</head>
<body>
<header>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href={% url "index" %} target="_parent">张勋作业</a>
                <nav class="nav-collapse collapse">
                    <ul class="nav pull-right">
                        <li><a href={% url "index" %}>主页</a></li>
                        <li><a href={% url "about" %}>关于</a></li>
                        <li><a href={% url "showall" %}>展示</a></li>

                        <li><a href={% url "scontact" %}>联系我们</a></li>
                        {% if request.user.is_authenticated %}
                            <li><a href="">{{ request.user.username }}</a></li>
                            <li><a href={% url "mylogout" %}>退出 </a></li>
                        {% else %}
                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">登录 <span
                                    class="caret"></span></a>
                                <form action={% url "login" %} method="post" class="dropdown-menu">
                                    {% csrf_token %}
                                    {{ mlogin }}
                                    <input type="submit" value="登录">
                                </form>
                            </li>
                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">注册 <span
                                    class="caret"></span></a>
                                <form action={% url "logup" %} method="post" class="dropdown-menu">
                                    {% csrf_token %}
                                    {{ msignup }}
                                    <input type="submit" value="注册">
                                </form>
                            </li>
                        {% endif %}
                    </ul>
                </nav>
            </div>
        </div>
    </div>
</header>
<section class="container" id="page_content">
    <div class="row">
        <div class="span9">
            <div class="row">
                <header class="span12">
                    <h3>Full Blog Post</h3>
                </header>
            </div>
            <div id="content">
                <article class="post_box">
                    <img src={{ MEDIA_URL }}{{ picture.images }} alt="Model Girl 1" class="image_frame_300 img-polaroid"/>
                   <h4>{{ picture.p_name }}</h4>
                    <p>简介：<br>{{ picture.p_desc }}</p>
                    <br>
                    <form action={% url "user_comment" %} method="post">
                        {% csrf_token %}
                        <input type="hidden" placeholder="picture" name="picture" value="{{ picture.pk }}">
                        <textarea placeholder="content" name='content' required=""></textarea>
                        <input type="submit" value="SEND">
                        <div class="clearfix"></div>
                    </form>
                </article>
                <div class="cleaner"></div>
                <section id="comment_section">
                    <h5>评论</h5>
                    <ol class="comments">
                        {% for i in user_comments|slice:"0:5" %}
                        <li>
                            <article class="comment_box commentbox1">
                                <div class="gravatar">

                </div>
                                    <div class="comment_text">
                                        <div class="comment_author">{{ i.user.username }} <span
                                                class="date">{{ i.comment_time }}</span></div>
                                        <p>{{ i.content }}</p>
                                    </div>
                                <div class="cleaner"></div>
                            </article>
                        </li>
                         {% endfor %}

                    </ol>

                    <div class="cleaner"></div>
                    <nav class="pagination">
                        <ul>
                            <li class="disabled"><a href="#" target="_parent">&laquo;</a></li>
                            <li class="active"><a href="#" target="_parent">1</a></li>
                            <li><a href="#" target="_parent">2</a></li>
                            <li><a href="#" target="_parent">3</a></li>
                            <li><a href="http://www.cssmoban.com/" target="_parent">4</a></li>
                            <li><a href="http://www.cssmoban.com/" target="_parent">5</a></li>
                            <li><a href="http://www.cssmoban.com/page/6" target="_parent">6</a></li>
                            <li><a href="http://www.cssmoban.com/page/7" target="_parent">&raquo;</a></li>
                        </ul>
                    </nav>
                </section>
                <div class="cleaner"></div>
            </div>
        </div>
        <br> <br> <br>
        <aside class="span3">
            <nav class="well sidebar-nav">
                <ul class="nav nav-list">
                    <li class="nav-header">分类1</li>
                    <li><a href="#">Lorem ipsum</a></li>
                    <li><a href="#">Suspendisse </a></li>
                    <li><a href="#">Calender</a></li>
                    <li><a href="#">Events</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Nam sed mi</a></li>
                    <li><a href="#">Aenean</a></li>
                    <li><a href="#">Quisque</a></li>
                    <li><a href="#">Fusce</a></li>
                    <li><a href="#">Sed varius</a></li>
                    <li><a href="#">Maecenas</a></li>
                    <li class="nav-header">Sidebar</li>
                    <li><a href="#">Cras convallis</a></li>
                    <li><a href="#">Integer id sapien</a></li>
                    <li><a href="#">Vestibulum</a></li>
                </ul>
            </nav>
        </aside>
    </div>
</section>
<footer>
    <div class="container">
        <div id="latest" class="row">


            <section class="span4 rp_box_wrapper">

                <h4> 联系我们 <i class="icon-envelope icon-white"></i></h4>

                <address>
                    <strong>地址</strong><br>
                    天府软件园B区5栋,<br>
                    成都高新区天华一路<br>

                    <abbr title="Phone">Phone:</abbr> <a href="tel:+86 182 0285 2911" title="give us a call">+86 182
                    0285 2911</a><br>
                    <abbr title="Email">Email:</abbr> <a href="15928646660@163.com">15928646660@163.com</a>
                </address>

            </section>

        </div>
        <div class="credit">
            <p id="templatemo_cr_bar">
                网页素材来自 | <a href="http://www.cssmoban.com/">模板之家</a>
            </p>
        </div>
    </div>
</footer>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src={% static "js/bootstrap.min.js" %}></script>
</body>
</html>